<?php

namespace Addons\Zmphoto\Controller;
use Addons\Zmphoto\Controller\BaseController;

class InfoReviewController extends BaseController{
	function _initialize() {
		parent::_initialize();
		$this->model = $this->getModel('photo_zm_review');
	}
    // 通用插件的列表模型
	public function lists() {
		$uid = I('uid',0,'intval');
        if($uid){
        	$map['aid'] = $uid;
        	session('common_condition',$map);
        }
        $where['token'] = get_token();
        $data = M('photo_zm_activity')->where($where)->field('id,actname as name')->select();
        $this->assign('uid',$uid);
		$this->assign('list_ctdata',$data);
		$list_data = $this->_get_model_list($this->model);
		$this->assign ( $list_data );
		$this->display('Zmphoto/custLists');
	}
	
	/*摄影师审核*/
	public function shen($id=null){
		$where['id'] = $id;
		if(M('photo_zm_gl')->where($where)->setFIeld('status',1)){
			$this->success('审核通过',U('lists'));
		}else{
			$this->error('审核失败，请重新审核');
		}
	}

}